﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo08
{
    class TaskNPC : NPC
    {
        private string taskInfo;


        public string TaskInfo {
            get { return this.taskInfo; }
            set { this.taskInfo = value; }
        }


        public TaskNPC(string name, NPCType type, string taskInfo) : base(name,type)
        {
            this.taskInfo = taskInfo;
        }


        public override void speak()
        {
            Console.WriteLine("你能帮帮我吗？NPC:{0},任务:{1}" ,this.Name,this.taskInfo);
        }
    }
}
